package com.datasource.datasourceslink.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyListener2 implements ServletContextListener {
    //销毁时执行
    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        System.out.println("MyListener2 IndexListener2 contextDestroyed method");
    }

    //创建时执行
    @Override
    public void contextInitialized(ServletContextEvent arg0) {
        System.out.println("MyListener2 IndexListener1 contextInitialized method");
    }
}
